Close
dtSearch Engine API for .NET Framework 2.x-4.x 2023.02
WordListBuilder::SetFilter Method

Limit results of ListMatchingWords or ListFieldValues to the documents in a SearchFilter

public void SetFilter( ref SearchFilter newFilter );

ListWords is not affected by SetFilter. Only ListMatchingWords and ListFieldValues limit their results to the items in the filter. 

When a SearchFilter is used, all counts returned by WordListBuilder are document counts. For example, if a word occurs 20 times in 7 documents, the count returned will be 7 for both GetNthWordCount and GetNthWordDocCount.